package com.example.kekewaimaibao.address.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.kekewaimaibao.address.mapper.AddressMapper;
import com.example.kekewaimaibao.address.model.AddressDO;
import com.example.kekewaimaibao.address.service.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: xuxiang
 * @date: 2022/3/6 22:48 星期日
 * @description:
 * @version: 1.0
 */
@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper, AddressDO> implements IAddressService {

    @Autowired
    AddressMapper addressMapper;

    @Override
    public List<AddressDO> listByUserId(Long userId) {
        return addressMapper.listByUserId(userId);
    }
}
